sort objects into three groups

join shbcf.ru